# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2022-12-28
desc: 
sample: 
"""
import random

data_list = ['极光', 'zhangsan', '李四', 'mtx', '王五']
prompt = """
控制台模拟随机抽奖算法
遇到quit退出，人数抽完退出
"""
message = ''
while message != 'quit':
    message = input(prompt)
    if message == 'quit':
        print("活动退出")
        break
    name = random.choice(data_list)
    print(f"恭喜{name}获奖了")
    if (len(data_list) > 1):
        data_list.remove(name)
    else:
        print("抽奖完毕，活动结束")
        message = 'quit'
